import request from '@/utils/request'

// 获取人员
export function getPerson (params = {}) {
  return request({
    url: '/workbench/attend-member/teamMembers',
    method: 'get',
    params
  })
}

// 统一定位车辆
export function getCarList (params = {}) {
  return request({
    url: '/workbench/car/list',
    method: 'get',
    params
  })
}

// 统一定位 巡查车 
export function getDeviceInfoList (params = {}) {
  return request({
    url: '/workbench/device-info/list',
    method: 'get',
    params
  })
}



// 获取人员轨迹
export function getHistoryRecord (params = {}) {
  return request({
    url: '/workbench/client/locations',
    method: 'get',
    params
  })
}

// 获取类型
export function getUnifyType (params = {}) {
  return request({
    url: '/jiaxing-saas/unify/type',
    method: 'get',
    params
  })
}
// 根据人员获取时段
export function getWorkTimeByMemberId (params = {}) {
  return request({
    url: '/workbench/attend-duty/my',
    method: 'get',
    params
  })
}
// 根据人员工作范围
export function getCheckArea (params = {}) {
  return request({
    url: '/workbench/attend-member/checkArea',
    method: 'get',
    params
  })
}


//巡查车任务
export function getPatrolList (params = {}) {
  return request({
    url: '/inspect/patrol-record/list',
    method: 'get',
    params
  })
}
//巡查车轨迹
export function getPatrolHistory (params = {}) {
  return request({
    url: '/inspect/patrol-record/findLocationById',
    method: 'get',
    params
  })
}


// 查询监控列表
export function getClientChannels (params = {}) {
    return request({
      url: '/workbench/client/channels',
      method: 'get',
      params
    })
  }

// 巡逻车列表新接口
export function listByPatrolRecord (params = {}) {
    return request({
      url: '/inspect/inspect-api/listByPatrolRecord',
      method: 'get',
      params
    })
  }